import request from "@/utils/request";

// 查询疫苗运输记录列表
export function listTransport(query) {
  return request({
    url: "/zp/vaccineTransport/list",
    method: "get",
    params: query,
  });
}

//搜索运输记录批号
export function vaccineTransportSearch(query) {
  return request({
    url: "/zp/vaccineTransport/search",
    method: "get",
    params: query,
  });
}

// 查询疫苗运输记录详细
export function getTransport(id) {
  return request({
    url: "/medical/transport/" + id,
    method: "get",
  });
}

// 新增疫苗运输记录
export function addTransport(data) {
  return request({
    url: "/zp/vaccineTransport",
    method: "post",
    data: data,
  });
}

// 修改疫苗运输记录
export function updateTransport(data) {
  return request({
    url: "/medical/transport",
    method: "put",
    data: data,
  });
}

// 删除疫苗运输记录
export function delTransport(id) {
  return request({
    url: "/medical/transport/" + id,
    method: "delete",
  });
}
